package com.ews.onlineexchange.app.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.PrePersist;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.ews.onlineexchange.model.TempRequirement;


public class TempTrade implements Serializable{
	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1L;

	private String 				supplierId;
	private String 				supplierName;
	private String 				bulletinId;
	private String				serialNumber;

	private boolean				apply;
	private Date				applyTime;
	private boolean				hasVerify;
	private Date				verifyTime;
	
	
	private BigDecimal 			offer;												//最新报价
	private Integer				offerCount = 0;										//报价次数	
	private List<TempRequirement>   requirements = new ArrayList<TempRequirement>();
	
	
	public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	
	public String getSupplierId() {
		return supplierId;
	}
	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}
	public String getBulletinId() {
		return bulletinId;
	}
	public void setBulletinId(String bulletinId) {
		this.bulletinId = bulletinId;
	}
	public String getSerialNumber() {
		return serialNumber;
	}
	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}
	public boolean isApply() {
		return apply;
	}
	public void setApply(boolean apply) {
		this.apply = apply;
	}
	public Date getApplyTime() {
		return applyTime;
	}
	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}
	public boolean isHasVerify() {
		return hasVerify;
	}
	public void setHasVerify(boolean hasVerify) {
		this.hasVerify = hasVerify;
	}
	public Date getVerifyTime() {
		return verifyTime;
	}
	public void setVerifyTime(Date verifyTime) {
		this.verifyTime = verifyTime;
	}
	public BigDecimal getOffer() {
		return offer;
	}
	public void setOffer(BigDecimal offer) {
		this.offer = offer;
	}
	public Integer getOfferCount() {
		return offerCount;
	}
	public void setOfferCount(Integer offerCount) {
		this.offerCount = offerCount;
	}
	public List<TempRequirement> getRequirements() {
		return requirements;
	}
	public void setRequirements(List<TempRequirement> requirements) {
		this.requirements = requirements;
	}
	
	
	
	
}
